<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.6.4",
    };
  },
  methods: {
    handleAdd(href) {
      this.$router.push('/homePage/announcement/add')
      // this.$router.push("/system/role-auth/user/" + '1');
    },

    handleEdit(id) {
      this.$router.push(`/homePage/announcement/edit/${id}`)
    }
  },
};

</script>

<template>
  <div class="app-container">

    <el-button
      type="primary"
      size="mini"
      icon="el-icon-cloudy"
      plain
      @click="handleAdd"
    >新增
    </el-button
    >
    <el-button
      type="primary"
      size="mini"
      icon="el-icon-cloudy"
      plain
      @click="handleEdit('1')"
    >编辑
    </el-button
    >
  </div>
</template>

<style scoped lang="scss">

</style>
